package secondBrush.string;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class E05KamaCoder {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = scanner.nextInt();
        String s = scanner.next();
        LinkedList<Character> list = new LinkedList<>();
        int index = s.length() - k;
        for (int i = 0; i < index; i++) {
            list.add(s.charAt(i));
        }
        for (int i = s.length() - 1; i >= index; i--) {
            list.addFirst(s.charAt(i));

        }

        String string = list.toString();
        System.out.println(string);




    }

}
